import request from '@/utils/request_zc'

export function getProductInspectionList ({
  planNo,
  materialName,
  jobName,
  inspectionBatch,
  inspectionItem,
  material,
  serialNo,
  status,
  page, limit }) {
  return request({
    url: '/product/sampling/list',
    method: 'get',
    params: {
      planNo,
      materialName,
      jobName,
      inspectionBatch,
      inspectionItem,
      material,
      serialNo,
      status,
      page,
      limit
    }
  })
}

export function getissueList () {
  return request({
    url: '/material/issue/list',
    method: 'get'
  })
}

export function editProductInspection (data) {
  return request({
    url: '/product/sampling/edit',
    method: 'post',
    data
  })
}

export function addProductInspection (data) {
  return request({
    url: '/product/sampling/add',
    method: 'post',
    data
  })
}


export function delProductInspection (data) {
  return request({
    url: '/product/sampling/del',
    method: 'post',
    data
  })
}

export function getComletionList () {
  return request({
    url: '/product/completion/list',
    method: 'get'
  })
}


export function getStandardList () {
  return request({
    url: '/inspection/standard/list',
    method: 'get'
  })
}

export function getJobList () {
  return request({
    url: '/product/job/list',
    method: 'get'
  })
}